package org.example.wx_springboot.mapper;


import org.apache.ibatis.annotations.Mapper;
import org.example.wx_springboot.controller.request.BaseRequest;
import org.example.wx_springboot.entity.Commodity;

import java.util.List;

@Mapper
public interface CommodityMapper {
//    @Select("select * from commodity")
    List<Commodity> list();// 3、查询所有的对象

    void seve(Commodity commodity);

    List<Commodity> listCommodity(BaseRequest baseRequest);

    Commodity getById(Integer id);
}
